<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <!--1.导入Vue.js-->
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
</head>
<body>
<!--3.使用简洁的模板语法把数据渲染到页面上-->
<div id="app">
    <p>{{message}}</p>
</div>

<script>
    <!--2.创建Vue实例对象, 设置el属性和data属性-->
    var app = new Vue({
        el: "#app",
        data: {
            message: "hello world"
        }
    });
</script>

</body>
</html>
